<?php

namespace IMT\OAuthServerBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use FOS\OAuthServerBundle\Entity\RefreshToken as BaseRefreshToken;
use FOS\OAuthServerBundle\Model\ClientInterface;


/**
 * IMT\OAuthServerBundle\Entity\RefreshToken
 *
 * @ORM\Table(name="oauth_refreshtoken")
 * @ORM\Entity
 */
class RefreshToken extends BaseRefreshToken
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\ManyToOne(targetEntity="Client")
     * @ORM\JoinColumn(nullable=false)
     */
    protected $client;
    
    /**
     * @ORM\ManyToOne(targetEntity="IMT\UserBundle\Entity\User")
     */
    protected $user;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
    
    public function getClient()
    {
    	return $this->client;
    }
    
    public function setClient(ClientInterface $client)
    {
    	$this->client = $client;
    }
    
}